package com.cowin.inf.service.impl;

import com.cowin.inf.dao.KyLineStateInfoMapper;
import com.cowin.inf.model.KyDeviceStateInfo;
import com.cowin.inf.model.KyLineStateInfo;
import com.cowin.inf.model.vo.KyLineStateInfoVo;
import com.cowin.inf.service.KyLineStateInfoService;
import com.cowin.base.AbstractServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by  on 2019/09/19.
 * @author CodeGenerator
 */
@Slf4j
@Service
@Transactional(rollbackFor = RuntimeException.class)
public class KyLineStateInfoServiceImpl extends AbstractServiceImpl<KyLineStateInfo> implements KyLineStateInfoService {

    @Resource
    private KyLineStateInfoMapper kyLineStateInfoMapper;

    @Override
    public List<KyLineStateInfoVo> filter(KyLineStateInfo kyLineStateInfo) {
        return kyLineStateInfoMapper.filter(kyLineStateInfo);
    }

    @Override
    public List<KyLineStateInfo> getLine8to8AutoTime(String workShopNo, String lineNo,Integer type, String status) {
        return kyLineStateInfoMapper.getLine8to8AutoTime(workShopNo,lineNo,type,status);
    }
}
